var countdown = 60;
function setTime(obj) {
    if (countdown == 0) {
        return;
    } else {
       
        countdown--;
        console.log(countdown)
    }
    setTimeout(function() { setTime(obj) },1000) //每1000毫秒执行一次
}

setTime(countdown)
